package com.sky.controller;

import com.sky.dto.ItemPageQueryDTO;
import com.sky.dto.StandardDTO;
import com.sky.result.PageResult;
import com.sky.service.StandardService;
import com.sky.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sky.result.Result;

@RestController
@RequestMapping("/admin/score")
@Api(tags = "得分接口")
@Slf4j
@RequiredArgsConstructor

public class StandardController {
	@Autowired
	private StandardService standardService;

	@PostMapping
	@ApiOperation("得分情况")
	public Result<Void> score(@RequestBody StandardDTO standarddto) {
		log.info("新增得分：{}", standarddto);
		standardService.save(standarddto);
		return Result.success();
	}


}
